package com.xinlong.service.impl;

import com.xinlong.dao.IpermissionsDao;
import com.xinlong.entity.Permission;
import com.xinlong.entity.Role;
import com.xinlong.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IPermissionServiceimpl implements IPermissionService {

     @Autowired
    IpermissionsDao ipermissionsDao;

    public List<Permission> findAll() {
        return ipermissionsDao.finAll();
    }

    public void save(Permission Permission) {
        ipermissionsDao.save(Permission);
    }
}
